<div class="row">
    <div class="col-lg-12">
        <h3 class="page-header"><i class="fa fa-user-md"></i> 个人设置</h3>
        <ol class="breadcrumb">
            <li><i class="fa fa-home"></i><a href="index.html">首页</a></li>
            <li><i class="fa fa-user-md"></i>个人设置</li>
        </ol>
    </div>
</div>
<div class="row">
    <div class="col-lg-12">
        <section class="panel">
            <header class="panel-heading">
                个人设置
            </header>
            <div class="panel-body">

                <form class="form-horizontal " method="post" action="index.php?r=user/saveconfig">

                    <?php
                    if(isset($message)){
                        if($message['code']!=10000){
                            ?>
                            <div class="alert alert-block alert-danger fade in">
                                <button data-dismiss="alert" class="close close-sm" type="button">
                                    <i class="icon-remove"></i>
                                </button>
                                <strong>警告：</strong> <?php echo $message['message']; ?>
                            </div>
                            <?php
                        }else{
                            ?>
                            <div class="alert alert-success fade in">
                            <button data-dismiss="alert" class="close close-sm" type="button">
                                    <i class="icon-remove"></i>
                                </button>
                                <strong>提示：</strong> <?php echo $message['message']; ?>
                            </div>
                            <?php
                        }
                    }
                    ?>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">旧密码</label>
                        <div class="col-sm-10">
                            <input type="oldpassword" name="oldpassword" class="form-control">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">新密码</label>
                        <div class="col-sm-10">
                            <input type="password" name="password" class="form-control">
                        </div>
                    </div>

                    <?php
                    if (Yii::app()->user->checkAccess('personalconfig_config')) {
                        ?>
                        <div class="form-group">
                            <div class="col-lg-offset-2 col-lg-10">
                                <button type="submit" class="btn btn-primary">保存</button>
                            </div>
                        </div>
                        <?php
                    }
                    ?>
                </form>
            </div>
        </section>
    </div>
</div>